<?php
/**
 * Created by PhpStorm.
 * User: bobfeng
 * Date: 2018/3/16
 * Time: 下午10:57
 */

namespace app\models;


use app\models\db\Discount;

class DiscountExt extends Discount
{
     public static function getDiscount($user_id,$order_goods_id){
         return Discount::findOne(['user_id'=>$user_id,'order_goods_id'=>$order_goods_id]);
     }
}